import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

import axios from 'axios'
import './plugins/element.js'
// 全局配置
axios.defaults.baseURL = 'http://ums.tangxiaoyang.vip/api'
axios.defaults.timeout = 5000

// 为Vue原型添加一个属性$http，以后在所有组件中都可以通过this.$http访问axios
Vue.prototype.$http = axios


import request from '@/utils/request'
Vue.prototype.request = request

new Vue({
  render: h => h(App),
}).$mount('#app')
